package ink.onei.production.mapper;

import ink.onei.production.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: nekotako
 * @Description: TODO
 * @Date: 26/12/2023 20:56 Tuesday
 */

public interface ICustomerMapper {

    Integer insert(Customer customer);

    Integer insertBatch(List<Customer> customerList);

    Integer update(Customer customer);

    Integer delete(Customer customer);

    Integer deleteBatch(List<Customer> customerList);

    Customer getCustomer(Customer customer);

    List<Customer> getCustomerList(@Param("id") Integer id,
                                   @Param("name") String name,
                                   @Param("fullName") String fullName,
                                   @Param("fax") String fax,
                                   @Param("mail") String mail,
                                   @Param("manager") String manager,
                                   @Param("address") String address,
                                   @Param("phone") String phone,
                                   @Param("status") String status);
}
